#debug and testing
from block import *
def main():
    
    buffer = [  0, 0, 0, 0,
                0, 0, 0, 0,
                0, 0, 0, 0,
                0, 0, 0, 0]

    pro = [
    "REA #4",
    "ADD #100 #100 #0",
    "OAR #1 #1"
        ]

    n = decompress(pro)
    print(n)
    program = blockprogram(n, [0,10,0,0,0,0,0,0], [],[])
    
    program.emulate(buffer)
    print(buffer)
main()

#Copyright (C) 2014 Jamie Knight
